angular.module('faApp').service('orderManagerService', [ 'ajaxService',function (ajaxService) {

    this.list = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("ORDER_MANAGER_USER_LIST"),cfg || {});
    };  

    this.notOrderManagerUserList = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("NOT_ORDER_MANAGER_USER_LIST"),cfg || {});
    };

    this.orderManagerUserAdd = function (user) {
      return ajaxService.post(ajaxService.getApiUri("ORDER_MANAGER_USER_ADD"),user || {});
    };

    this.managerOrderUserAdd = function (manageOrder) {
      return ajaxService.post(ajaxService.getApiUri("MANAGER_ORDER_USER_ADD"),manageOrder || {});
    };

    this.managerOrderUserUpdate = function (manageOrder) {
      return ajaxService.post(ajaxService.getApiUri("MANAGER_ORDER_USER_UPDATE"),manageOrder || {});
    };

    this.editManagerOrderByUser = function(systemUserId){
      return ajaxService.post(ajaxService.getApiUri("MANAGER_ORDER_UPDATE_BY_USER"),{systemUserId : systemUserId});
    }
}]);

